<?php if(!defined('BASEPATH'))exit('No direct script access allowed'); ?>
<?php if($home == true){ ?>
<div class="borderBlue980">
    <div class="titleABS"><span class="red"><?php echo lang('BESTSHOP'); ?></span></div>
    <div class="oBorderBlue980">
        <div class="iBorderBlue980">
            <div class="item">
                <!--LOOP-->
                <?php foreach($rows as $row){ ?>
                <div class="item134X140">
                    <div class="img">
                        <a class="vtip" href="<?php echo base_url().$row->shoLink; ?>" title="<?php echo tip(sub($row->shoDescr, 50)); ?>" target="_blank">
                            <img src="<?php echo base_url().show_thumbnail('thumbnail122X112_', $row->shoLogo, IMAGE_PATH.'shop/logos/'.$row->shoDirLogo.'/', 'templates/home/images/defaultLogo.jpg'); ?>" width="122" height="112" alt="<?php echo $row->shoName; ?>" />
                        </a>
                    </div>
                    <div class="txt">
                        <a class="vtip" href="ymsgr:SendIM?<?php echo $row->useYahoo; ?>" title="<?php echo tip(array(lang('YAHOO')=>$row->useYahoo)); ?>">
                            <?php if(yahoo_status($row->useYahoo)){ ?>
                            <img src="<?php echo base_url(); ?>templates/home/images/bYahoo1.jpg" />
                            <?php }else{ ?>
                            <img src="<?php echo base_url(); ?>templates/home/images/bYahoo0.jpg" />
                            <?php } ?>
                        </a>
                        <a class="vtip" href="skype:<?php echo $row->useSkype; ?>?Chat" title="<?php echo tip(array(lang('SKYPE')=>$row->useSkype)); ?>">
                            <img src="<?php echo base_url(); ?>templates/home/images/bSkype.jpg" />
                        </a>
                        <a class="vtip" href="mailto:<?php echo $row->useEmail; ?>" title="<?php echo tip(array(lang('EMAIL')=>$row->useEmail)); ?>">
                            <img src="<?php echo base_url(); ?>templates/home/images/bEmail.jpg" />
                        </a>
                        <img class="vtip" src="<?php echo base_url(); ?>templates/home/images/bPhone.jpg" title="<?php echo tip(array(lang('TEL')=>$row->usePhone)); ?>" />
                        <img class="vtip" src="<?php echo base_url(); ?>templates/home/images/bInfo.jpg" title="<?php echo tip(array(lang('BOSS_SHOP')=>$row->useFullname, lang('ADDRESS')=>$row->useAddress)); ?>" />
                    </div>
                </div>
                <?php } ?>
                <!--LOOP-->
                <div class="clear"></div>
            </div>
        </div>
    </div>
</div>
<?php }else{ ?>
<div class="borderBlue739">
    <div class="titleABS"><span class="red"><?php echo lang('BESTSHOP'); ?></span></div>
    <div class="oBorderBlue739">
        <div class="iBorderBlue739">
            <div class="item">
                <!--LOOP-->
                <?php $index = 1; ?>
                <?php foreach($rows as $row){ ?>
                <div class="item117X140">
                    <div class="img">
                        <a href="<?php echo base_url().$row->shoLink; ?>" title="<?php echo lang('VISIT_SHOP'); ?>" target="_blank">
                            <img src="<?php echo base_url().show_thumbnail('thumbnail105X97_', $row->shoLogo, IMAGE_PATH.'shop/logos/'.$row->shoDirLogo.'/', 'templates/home/images/defaultLogo.jpg'); ?>" width="105" height="97" alt="<?php echo $row->shoName; ?>" />
                        </a>
                    </div>
                    <div class="txt">
                        <a class="vtip" href="<?php echo base_url().$row->shoLink; ?>" title="<?php echo tip(sub($row->shoDescr, 50)); ?>" target="_blank"><?php echo sub($row->shoName, 10); ?></a>
                    </div>
                    <div class="txt">
                        <?php for($i = 1; $i <= 5; $i++){ ?>
                        <?php if($i <= (int)$row->shoLevel){ ?>
                        <img src="<?php echo base_url(); ?>templates/home/images/starBlue1.jpg" />
                        <?php }else{ ?>
                        <img src="<?php echo base_url(); ?>templates/home/images/starBlue0.jpg" />
                        <?php } ?>
                        <?php } ?>
                    </div>
                </div>
                <?php if($index == 6){ ?>
                <div class="clear"></div>
                <?php } ?>
                <?php $index++; ?>
                <?php } ?>
                <!--LOOP-->
                <div class="clear"></div>
            </div>
        </div>
    </div>
</div>
<?php } ?>